IDLC_SID=/usr/lib/xulrunner/sdk/bin/xpidl
IDLC_DAPPER=/usr/lib/firefox/xpidl

INC_SID=/usr/share/idl/xulrunner/
INC_DAPPER=/usr/share/idl/firefox/

IDLC=$(if $(wildcard $(IDLC_SID)), $(IDLC_SID), $(IDLC_DAPPER))
INC=$(if $(wildcard $(INC_SID)), $(INC_SID), $(INC_DAPPER))

XPTS=MozRemote.xpt

all: $(XPTS)

%.xpt: %.idl
	$(IDLC) -m typelib -w -v -I $(INC) -e $(@) $(<)

.PHONY: all
